package demo7;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component// 将当前类交给Spring管理，注册为bean
//@Scope("singleton") //单例，不写默认值也是它
@Scope("prototype")//多例，每次获取是都会创建一个新对象
public class DBConnect {



}
